package com.lyandwc.lw_bbs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyandwc.lw_bbs.entity.Notification;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NotificationDao extends BaseMapper<Notification> {
    List<Notification> listNotificationsByUid(int userId);
    List<Notification> listUnreadNotificationsByUid(int userId);
    Boolean checkIsOwner(int id, int userId);
}
